﻿@{
    ViewBag.Title = "模具档案管理";
    Layout = "~/Views/Shared/_ManufactureList.cshtml";
}
<link href="~/Content/css/BlankingcardManagement_print.css" rel="stylesheet" media="print" />
<style type="text/css">
    #print {
        display: none;
    }

    .tool_c {
        padding: 10px 0;
    }

    .btn-group {
        padding: 0 10px 0 0;
    }

    .grid_list_2_c {
        overflow: hidden;
    }

        .grid_list_2_c .frozen-bdiv {
            top: 34px !important;
        }

        .grid_list_2_c .frozen-div {
            height: 3em !important;
        }

        .grid_list_2_c .ui-jqgrid-hdiv {
            width: 1900px !important;
            background-color: transparent !important;
        }

        .grid_list_2_c .ui-jqgrid-bdiv {
            width: 1900px !important;
            background-color: transparent !important;
        }

        .grid_list_2_c .ui-jqgrid-btable {
            background-color: #fff !important;
        }

    .btn-group:last-child a.btn:first-child {
        margin: 0 0.5em 0 0 !important;
    }

    .input_inline input {
        display: inline-block;
        width: 4em;
    }
</style>
<script>
    $(function () {
        Index.init();
    });

    var Index = {
        printTemplate: null,
        dataList: {
            "0": null,
            "1": null
        },
        init: function () {
            with (Index) {
                loadDataList();

                initControl();

                printTemplate = $("#print").html();
            }
        },
        initControl: function () {
            var o = {
                "0": "i11,i12,i13,i14,i16,i18,i19".split(","),
                "1": "i15,i13,i17,i18,i19".split(",")
            };

            $("[name=ra0]").on("click", function () {
                $(".i1").hide(0);

                var arr = o[$(this).val()];

                arr.forEach(function (cur) {
                    $(".{0}".format(cur)).fadeIn(100);
                });

            });

            $("[name=ra0]:first").trigger("click");

            $('select').bindSelect();

            //批次查询 btn_search1
            $("#btn_search1").on("click", function () {
                var idx = $("[name=ra0]:checked").val();

                0 == idx && (function () {
                    var $gridList1 = $("#gridList1");

                    var conn1 = {//MatNO FProductionNO FProductionName MeterialNo MeterialSpecificationsW MeterialSpecificationsH FStoreNO
                        "MatNO": $("#CardNo1").val(),
                        "FProductionNO": $("#FProductionNO1").val(),
                        "FProductionName": $("#FProductionName1").val(),
                        "MaterialCodeAll": $("#MeterialNo1").val(),
                        "MaterialSizes_SJBL": $("#MaterialSizes_SJBL1").val()
                    };

                    $gridList1.jqGrid('setGridParam', {
                        postData: conn1,
                    }).trigger('reloadGrid');
                })();

                1 == idx && (function () {
                    var $gridList2 = $("#gridList2");

                    var conn2 = {//MatNO FProductionNO FProductionName MeterialNo MeterialSpecificationsW MeterialSpecificationsH FStoreNO
                        "MatNO": $("#CardNo1").val(),
                        "FProductionNO": $("#FProductionNO1").val(),
                        "FProductionName": $("#FProductionName1").val(),
                        "MaterialCodeAll": $("#MeterialNo1").val(),
                        "MaterialSizes_SJBL": $("#MaterialSizes_SJBL1").val(),
                        "isArchive": true
                    };

                    $gridList2.jqGrid('setGridParam', {
                        postData: conn2,
                    }).trigger('reloadGrid');
                })();

            });

            $("#butnGoAdd").on("click", function () {
                location.href = "/BOM/Blankingcard/BlankingcardAdd";
            });

            $("#butnGoDetails").on("click", function () {
                var idx = $("[name=ra0]:checked").val();

                var data = Index.dataList[idx];

                var num = $("#gridList1").jqGrid("getGridParam", "selrow");

                var r = data.rows[num - 1]["MatListID"];

                var jsonData = { id: r };

                var url = "/BOM/Blankingcard/BlankingcardDetails?{0}".format($.param(jsonData));

                location.href = url;
            });

            $("#butnPrint").on("click", function () {
                var idx = $("[name=ra0]:checked").val();

                var data = Index.dataList[idx];

                var num = $("#gridList{0}".format(idx + 1)).jqGrid("getGridParam", "selrow");

                !!num || $.modalAlert("请选择需要打印的数据。", "error");

                !!num && (function () {
                    var MatNO = data.rows[num - 1]["MatNO"];

                    var isArchive = idx == 0;

                    Index.printItem(MatNO, isArchive, function (res) {
                        var specials = "YLZL1,YLZL2,YLZL3".split(",");

                        var hadZero = "FLZL1,FLZL2,FLZL3,YLSL2,YLSL3".split(",");

                        var pic = "pic_id".split(","), url = "/BOM/Blankingcard/GetArtMatCardMaterialsImage?Pic_NO={0}";

                        for (var idx in pic) {
                            res["pic_url"] = url.format(res[pic[idx]]);
                        }

                        for (var idx in hadZero) {
                            res[hadZero[idx]] = "";
                        }

                        for (var idx in specials) {
                            !!res[specials[idx]] && (res[specials[idx]] = Math.round(eval(res[specials[idx]])));
                        }

                        var html = Index.printTemplate.format(res);

                        $("#print").html(html).jqprint();
                    });
                })();
            });

            $("#butnFrozen").on("click", function () {
                $.modalConfirm("是立即将屏幕光标指标的记录冻结/发布", function (foo) {
                    foo && (function () {
                        var idx = $("[name=ra0]:checked").val();

                        var data = Index.dataList[idx];

                        var num = $("#gridList2").jqGrid("getGridParam", "selrow");

                        !!num || $.modalAlert("请选择需要冻结的数据。", "error");

                        !!num && (function () {
                            var MatNO = data.rows[num - 1]["MatNO"];

                            $.post("/BOM/Blankingcard/FrozenBlankcardItem", { MatNO: MatNO }, function (res) {
                                0 < res || $.modalAlert("冻结数据失败,请联系管理员", "error");

                                0 < res && $("#btn_search1").trigger("click");
                            });
                        })();
                    })();
                },true);
            });
        },
        printItem: function (MatNO, isArchive, onLoadComplate) {
            $.post("/BOM/Blankingcard/GetBlankcardPrintInfo",
                    { MatNO: MatNO, isArchive: isArchive },
                    function (res) {
                        onLoadComplate && onLoadComplate(res);
                    }, "json");
        },
        loadDataList: function () {
            var conn1 = {
                "MatNO": $("#CardNo1").val(),
                "FProductionNO": $("#FProductionNO1").val(),
                "FProductionName": $("#FProductionName1").val(),
                "MaterialCodeAll": $("#MeterialNo1").val(),
                "MaterialSizes_SJBL": $("#MaterialSizes_SJBL1").val(),
                "isArchive": false
            };
            var $gridList1 = $("#gridList1");///BOM/Blankingcard/GetBlankingcards
            $gridList1.dataGridForJson({
                url: "/BOM/Blankingcard/GetBlankingcards",
                postData: conn1,
                height: $(window).height() - 220,
                colModel: [
                {
                    label: '选择', name: 'MatNO', width: 40, align: 'center', sortable: false, frozen: true, formatter: function (cellvalue) {
                        var html = "<input type=\"checkbox\" value=\"{0}\"/>".format(cellvalue);

                        return html;
                    }
                , frozen: true
                },
                { label: '编号', name: 'MatListID,', width: 110, align: 'center', sortable: false, frozen: true, hidden: true },
                { label: '下料卡号', name: 'MatNO', width: 110, align: 'center', sortable: false, frozen: true },
                { label: '显示<br/>说明', name: 'EditStatus', width: 40, align: 'center', sortable: false, frozen: true },
                { label: '下料<br/>方式', name: 'IsBZGY', width: 40, align: 'center', sortable: false, frozen: true },
                { label: '剪切<br/>图形', name: 'IsImg', width: 40, align: 'center', sortable: false, frozen: true },
                { label: '毛坯<br/>符号', name: 'Sign_MP', width: 40, align: 'left', sortable: false, frozen: true },
                { label: '零件编号', name: 'FProductionNOName', width: 160, align: 'left', sortable: false, frozen: true },
                { label: '零件编号', name: 'FProductionNO', width: 90, align: 'left', sortable: false, hidden: true },
                { label: '零件名称', name: 'FProductionName', width: 90, align: 'left', sortable: false, hidden: true },
                { label: '材料牌号', name: 'MaterialCode_ALL', width: 160, align: 'left', sortable: false },
                { label: '工艺材料牌号', name: 'MaterialCode_YCL', width: 90, align: 'left', sortable: false, hidden: true },
                { label: '实际材料牌号', name: 'MaterialCode_SJBL', width: 90, align: 'left', sortable: false, hidden: true },
                { label: '材料规格<br/>(mm)', name: 'MaterialSizes_ALL', width: 160, align: 'left', sortable: false },
               { label: '工艺材料规格', name: 'MaterialSizes_BL', width: 90, align: 'left', sortable: false, hidden: true },
                { label: '实际材料规格', name: 'MaterialSizes_SJBL', width: 90, align: 'left', sortable: false, hidden: true },
                { label: '"开卷尺寸<br/>(mm)', name: 'MaterialSizes_K1', width: 100, align: 'right', sortable: false },
                { label: ' 剪切规格<br/>(mm) ', name: 'MaterialSizes_J', width: 160, align: 'left', sortable: false },
                { label: '投料重量<br/>(mm)', name: 'FQuantity_GBZL', width: 100, align: 'right', sortable: false },
                { label: '一张几块', name: 'FYZJK', width: 80, align: 'right', sortable: false },
                { label: '一块几张', name: 'FYKJJ', width: 80, align: 'right', sortable: false },
                { label: '工艺一张几块', name: 'FYZJK_GY', width: 80, align: 'right', sortable: false, hidden: true },
                { label: '工艺一块几件', name: 'FYKJJ_GY', width: 80, align: 'right', sortable: false },
                { label: '一张几件', name: 'KZLJ', width: 80, align: 'right', sortable: false },
                 { label: '零件净重<br/> (kg)', name: 'PartsNetWeight', width: 80, align: 'right', sortable: false },
                 { label: '单件工艺定额<br/> (kg)', name: 'MaterialQuota_GY', width: 120, align: 'right', sortable: false, hidden: true },
                { label: '单件实际定额<br/> (kg)', name: 'MaterialQuota_TL', width: 120, align: 'right', sortable: false, hidden: true },
                { label: '工艺材料<br/>利用率  (%)', name: 'LYL_GY', width: 100, align: 'right', sortable: false },
                { label: '实际材料<br/>利用率  (%)', name: 'LYL_TL', width: 100, align: 'right', sortable: false },
                {
                    label: '方向', name: 'FiberDirection', width: 50, align: 'center', sortable: false, formatter: function (cellvalue) {
                        return cellvalue == "1" ? "是" : "";
                    }
                },
                { label: '毛坯<br/>类别', name: 'RoughsType', width: 40, align: 'center', sortable: false },
                { label: '毛坯尺寸<br/>(mm)', name: 'RoughsSize', width: 160, align: 'left', sortable: false },
                { label: '宽度公差<br/>(mm)', name: 'KFZGC', width: 80, align: 'left', sortable: false },
                { label: '长度公差<br/>(mm)', name: 'CZFGC', width: 80, align: 'left', sortable: false },
                { label: '标准编号', name: 'StandardNumber_ALL', width: 160, align: 'left', sortable: false },
                { label: '特殊要求', name: 'MaterialDemand_ALL', width: 160, align: 'left', sortable: false },
                { label: '一级<br/>废料规格', name: 'FLGG1	', width: 80, align: 'center', sortable: false, hidden: true },
                { label: '一级<br/>废料重量', name: 'FLZL1', width: 80, align: 'right', sortable: false, hidden: true },
                { label: '二级<br/>废料规格', name: 'FLGG2', width: 80, align: 'center', sortable: false, hidden: true },
                { label: '二级<br/>废料重量', name: 'FLZL2', width: 80, align: 'right', sortable: false, hidden: true },
                { label: '三级<br/>废料规格', name: 'FLGG3', width: 80, align: 'center', sortable: false, hidden: true },
                { label: '三级<br/>废料重量', name: 'FLZL3', width: 80, align: 'right', sortable: false, hidden: true },
                { label: '余料规格1(mm)', name: 'YLGG1', width: 160, align: 'left', sortable: false },
                { label: '余料数量1', name: 'YLSL1', width: 80, align: 'center', sortable: false },
                { label: '余料规格2(mm)', name: 'YLGG2', width: 160, align: 'left', sortable: false },
                { label: '余料数量2', name: 'YLSL2', width: 80, align: 'center', sortable: false },
                { label: '余料规格3(mm)', name: 'YLGG3', width: 160, align: 'left', sortable: false },
                { label: '余料数量3', name: 'YLSL3', width: 80, align: 'center', sortable: false },
                { label: '输入人员', name: 'InputUser', width: 60, align: 'left', sortable: false },
                { label: '输入日期', name: 'InputDate', width: 80, align: 'center', sortable: false },
                { label: '输入时间', name: 'InputTime', width: 60, align: 'center', sortable: false },
                { label: '审核人员', name: 'FAuditingBy', width: 60, align: 'left', sortable: false },
                { label: '审核日期', name: 'FAuditingDate', width: 80, align: 'center', sortable: false },
                { label: '审核时间', name: 'FAuditingTime', width: 60, align: 'center', sortable: false }
                ],
                pager: "#gridPager1",
                sortname: 'MatNO asc',
                viewrecords: true,
                rownumWidth: 50,
                onSelectRow: function (rowId) {

                },
                loadComplete: function (data) {
                    Index.dataList["0"] = data;
                }
            });

            var conn2 = {
                "MatNO": $("#CardNo1").val(),
                "FProductionNO": $("#FProductionNO1").val(),
                "FProductionName": $("#FProductionName1").val(),
                "MaterialCodeAll": $("#MeterialNo1").val(),
                "MaterialSizes_SJBL": $("#MaterialSizes_SJBL1").val(),
                "isArchive": true
            };
            $gridList1.jqGrid('setFrozenColumns');

            $gridList1.jqGrid('setLabel', 0, '序号', 'rowNumberHeaderStyle');

            var $gridList2 = $("#gridList2");///BOM/Blankingcard/GetBlankingcards
            $gridList2.dataGridForJson({
                url: "/BOM/Blankingcard/GetBlankingcards",
                postData: conn2,
                height: $(window).height() - 220,
                colModel: [
                {
                    label: '选择', name: 'MatNO', width: 40, align: 'center', sortable: false, frozen: true, formatter: function (cellvalue) {
                        var html = "<input type=\"checkbox\" value=\"{0}\"/>".format(cellvalue);

                        return html;
                    }
                , frozen: true
                },
                 { label: '编号', name: 'MatListID,', width: 110, align: 'center', sortable: false, frozen: true, hidden: true },
                { label: '下料卡号', name: 'MatNO', width: 110, align: 'center', sortable: false, frozen: true },
                { label: '显示<br/>说明', name: 'EditStatus', width: 40, align: 'center', sortable: false, frozen: true },
                { label: '下料<br/>方式', name: 'IsBZGY', width: 40, align: 'center', sortable: false, frozen: true },
                { label: '剪切<br/>图形', name: 'IsImg', width: 40, align: 'center', sortable: false, frozen: true },
                { label: '毛坯<br/>符号', name: 'Sign_MP', width: 40, align: 'left', sortable: false, frozen: true },
                { label: '零件编号', name: 'FProductionNOName', width: 160, align: 'left', sortable: false, frozen: true },
                { label: '零件编号', name: 'FProductionNO', width: 90, align: 'left', sortable: false, hidden: true },
                { label: '零件名称', name: 'FProductionName', width: 90, align: 'left', sortable: false, hidden: true },
                { label: '材料牌号', name: 'MaterialCode_ALL', width: 160, align: 'left', sortable: false },
                { label: '工艺材料牌号', name: 'MaterialCode_YCL', width: 90, align: 'left', sortable: false, hidden: true },
                { label: '实际材料牌号', name: 'MaterialCode_SJBL', width: 90, align: 'left', sortable: false, hidden: true },
                { label: '材料规格<br/>(mm)', name: 'MaterialSizes_ALL', width: 160, align: 'left', sortable: false },
               { label: '工艺材料规格', name: 'MaterialSizes_BL', width: 90, align: 'left', sortable: false, hidden: true },
                { label: '实际材料规格', name: 'MaterialSizes_SJBL', width: 90, align: 'left', sortable: false, hidden: true },
                { label: '"开卷尺寸<br/>(mm)', name: 'MaterialSizes_K1', width: 100, align: 'right', sortable: false },
                { label: ' 剪切规格<br/>(mm) ', name: 'MaterialSizes_J', width: 160, align: 'left', sortable: false },
                { label: '投料重量<br/>(mm)', name: 'FQuantity_GBZL', width: 100, align: 'right', sortable: false },
                { label: '一张几块', name: 'FYZJK', width: 80, align: 'center', sortable: false },
                { label: '一块几张', name: 'FYKJJ', width: 80, align: 'center', sortable: false },
                { label: '工艺一张几块', name: 'FYZJK_GY', width: 80, align: 'center', sortable: false, hidden: true },
                { label: '工艺一块几件', name: 'FYKJJ_GY', width: 80, align: 'center', sortable: false },
                { label: '一张几件', name: 'KZLJ', width: 80, align: 'center', sortable: false },
                 { label: '零件净重<br/> (kg)', name: 'PartsNetWeight', width: 80, align: 'right', sortable: false },
                 { label: '单件工艺定额<br/> (kg)', name: 'MaterialQuota_GY', width: 120, align: 'right', sortable: false, hidden: true },
                { label: '单件实际定额<br/> (kg)', name: 'MaterialQuota_TL', width: 120, align: 'right', sortable: false, hidden: true },
                { label: '工艺材料<br/>利用率  (%)', name: 'LYL_GY', width: 100, align: 'right', sortable: false },
                { label: '实际材料<br/>利用率  (%)', name: 'LYL_TL', width: 100, align: 'right', sortable: false },
                {
                    label: '方向', name: 'FiberDirection', width: 50, align: 'center', sortable: false, formatter: function (cellvalue) {
                        return cellvalue == "1" ? "是" : "";
                    }
                },
                {
                    label: '毛坯<br/>类别', name: 'RoughsType', width: 40, align: 'center', sortable: false, formatter: function (cellvalue) {
                        return cellvalue == "K" ? "块料" : cellvalue == "T" ? "条料" : cellvalue == "Y" ? "异形" : cellvalue == "L" ? "落料" : "";
                    }
                },
                { label: '毛坯尺寸<br/>(mm)', name: 'RoughsSize', width: 160, align: 'left', sortable: false },
                { label: '宽度公差<br/>(mm)', name: 'KFZGC', width: 80, align: 'left', sortable: false },
                { label: '长度公差<br/>(mm)', name: 'CZFGC', width: 80, align: 'left', sortable: false },
                { label: '标准编号', name: 'StandardNumber_ALL', width: 160, align: 'left', sortable: false },
                { label: '特殊要求', name: 'MaterialDemand_ALL', width: 160, align: 'left', sortable: false },
                { label: '一级<br/>废料规格', name: 'FLGG1	', width: 80, align: 'center', sortable: false, hidden: true },
                { label: '一级<br/>废料重量', name: 'FLZL1', width: 80, align: 'right', sortable: false, hidden: true },
                { label: '二级<br/>废料规格', name: 'FLGG2', width: 80, align: 'center', sortable: false, hidden: true },
                { label: '二级<br/>废料重量', name: 'FLZL2', width: 80, align: 'right', sortable: false, hidden: true },
                { label: '三级<br/>废料规格', name: 'FLGG3', width: 80, align: 'center', sortable: false, hidden: true },
                { label: '三级<br/>废料重量', name: 'FLZL3', width: 80, align: 'right', sortable: false, hidden: true },
                { label: '余料规格1(mm)', name: 'YLGG1', width: 160, align: 'left', sortable: false },
                { label: '余料数量1', name: 'YLSL1', width: 80, align: 'center', sortable: false },
                { label: '余料规格2(mm)', name: 'YLGG2', width: 160, align: 'left', sortable: false },
                { label: '余料数量2', name: 'YLSL2', width: 80, align: 'center', sortable: false },
                { label: '余料规格3(mm)', name: 'YLGG3', width: 160, align: 'left', sortable: false },
                { label: '余料数量3', name: 'YLSL3', width: 80, align: 'center', sortable: false },
                { label: '输入人员', name: 'InputUser', width: 60, align: 'left', sortable: false },
                { label: '输入日期', name: ',InputDate', width: 60, align: 'center', sortable: false },
                { label: '输入时间', name: 'InputTime', width: 60, align: 'center', sortable: false },
                { label: '审核人员', name: 'FAuditingBy', width: 60, align: 'left', sortable: false },
                { label: '审核日期', name: 'FAuditingDate', width: 60, align: 'center', sortable: false },
                { label: '审核时间', name: 'FAuditingTime', width: 60, align: 'center', sortable: false }
                ],
                pager: "#gridPager2",
                sortname: 'MatNO asc',
                viewrecords: true,
                rownumWidth: 50,
                onSelectRow: function (rowId) {
                    rowData = $gridList2.jqGrid('getRowData', rowId);
                    index = rowId;
                    $.each(rowData, function (key, value) {
                        $("#txt" + key).val(value);
                    });
                },
                loadComplete: function (data) {
                    Index.dataList["1"] = data;
                }
            });
            $gridList2.jqGrid('setFrozenColumns');

            $gridList2.jqGrid('setLabel', 0, '序号', 'rowNumberHeaderStyle');

            var customFmatter = function (cellvalue, options, rowObject) {
                return "{0}%".format(cellvalue * 100);
            };
        },
        getMaxDay: function () {
            var r = 31, m = new Date().getMonth() + 1, y = new Date().getFullYear(), sec = [4, 6, 9, 11];
            //能被4整除但不能被100整除，或能被400整除的年份
            2 == m && (r = (((0 == y % 4 && 0 != y % 100) || 0 == y % 400) ? 29 : 28));

            sec.indexOf(m) && (m = 30);

            return r;
        }
    };



</script>
<div class="layout" id="layout" style="height: 100%; width: 100%;">
    <div class="tool_c">
        <div class="btn-group">
            <input type="radio" id="ra01" value="0" name="ra0" /><label for="ra01">编辑	</label>
            <br />
            <input type="radio" id="ra02" value="1" name="ra0" /><label for="ra02">	档案 </label>
            <br />
        </div>
        <div class="btn-group input-width-115">
            &nbsp;下料卡号<br />
            <input id="CardNo1" name="" placeholder="" type="text" class="form-control required input-width-105" />
        </div>
        <div class="btn-group">
            &nbsp;零件编号<br />
            <input id="FProductionNO1" name="" placeholder="" type="text" class="form-control required input-width-105" />
        </div>
        <div class="btn-group">
            &nbsp;零件名称<br />
            <input id="FProductionName1" name="" placeholder="" type="text" class="form-control required input-width-140" />
        </div>
        <div class="btn-group input-width-105">
            &nbsp;材料牌号<br />
            <input id="MeterialNo1" name="" placeholder="" type="text" class="form-control required input-width-140" />
        </div>
        <div class="btn-group">
            &nbsp;材料规格
            <input id="MaterialSizes_SJBL1" name="" placeholder="请输入：厚X宽X长" type="text" class="form-control required  input-width-140" />
        </div>
        <div class="btn-group">
            <a id="btn_search1" class="btn btn-primary center-block"><span class="glyphicon glyphicon-search"></span>查询</a>
            <a class="btn btn-primary center-block" onclick="$.reload()"><span class="glyphicon glyphicon-refresh"></span>&nbsp刷新</a>
            <a id="butnGoAdd" class="btn btn-primary center-block i1 i11"><span class="glyphicon glyphicon-refresh"></span>输入</a>
            <a class="btn btn-primary center-block i1 i12"><span class="glyphicon glyphicon-print"></span>删除</a>
            <a id="butnGoDetails" class="btn btn-primary center-block i1 i13"><span class="glyphicon glyphicon-download"></span>方案</a>
            <a id="butnPrint" class="btn btn-primary center-block i1 i18"><span class="glyphicon glyphicon-print"></span>打印</a>
            <a id="butnExport" class="btn btn-primary center-block i1 i19"><span class="glyphicon glyphicon-export"></span>导出</a>
            <a class="btn btn-primary center-block i1 i14"><span class="glyphicon glyphicon-download"></span>发布</a>
            <a id="butnFrozen" class="btn btn-primary center-block i1 i15"><span class="glyphicon glyphicon-download"></span>冻结</a>
        </div>
    </div>
    <div class="grid_list_1_c i1 i16" style="margin-top: 5px;">
        <table id="gridList1"></table>
        <div id="gridPager1"></div>
    </div>
    <div class="grid_list_1_c i1 i17" style="margin-top: 5px;">
        <table id="gridList2"></table>
        <div id="gridPager2"></div>
    </div>
    <div id="print">
        <table>
            <tr>
                <td>1
                </td>
                <td>2
                </td>
                <td>3
                </td>
                <td>4
                </td>
                <td>5
                </td>
                <td>6
                </td>
                <td>7
                </td>
                <td>8
                </td>
                <td>9
                </td>
                <td>10
                </td>
                <td>11
                </td>
                <td>12</td>
                <td>13
                </td>
            </tr>
            <tr>
                <td colspan="6">北汽福田汽车股份有限公司冲压工厂<br />
                    板料下料卡
                </td>
                <td>文件代号</td>
                <td>{MatNO}</td>
                <td colspan="2">供货单位</td>
                <td colspan="3">{ProduWorkshop}</td>
            </tr>
            <tr>
                <td>符号</td>
                <td colspan="2">零件编号</td>
                <td colspan="2">工艺要求</td>
                <td>实际投料</td>
                <td>平开规格</td>
                <td colspan="3">毛坯尺寸</td>
                <td colspan="2">每张钢板<br />
                    可制件数	</td>
                <td>制件<br />
                    总数</td>
            </tr>
            <tr>
                <td>{Sign_MP}</td>
                <td colspan="2">{FProductionNO}<br />
                    {FProductionName}</td>
                <td colspan="2">{MaterialCode_YCL}<br />
                    {MaterialSizes_BL}</td>
                <td>{MaterialCode_SJBL}<br />
                    {MaterialSizes_SJBL}</td>
                <td>{MaterialSizes_SJBL}</td>
                <td colspan="3">{KFGC_KZGC}&nbsp;{KFGC_CZGC}<br />
                    {RoughsType}&nbsp;{RoughsSize}</td>
                <td colspan="2" class="td_r">{KZLJ}	</td>
                <td class="td_r">{KZLJ}</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>
                <td colspan="2">&nbsp;</td>
                <td>&nbsp;	</td>
                <td>&nbsp;</td>
                <td colspan="3">&nbsp;</td>
                <td colspan="2">&nbsp;	</td>
                <td>&nbsp;</td>
            </tr>
            <tr class="line">
                <td colspan="7" rowspan="10" class="img_c">
                    <img src="{pic_url}" alt="" /></td>
                <td colspan="2">余料规格</td>
                <td colspan="2">重量(kg)</td>
                <td colspan="2">块数</td>
            </tr>
            <tr class="line">
                <td colspan="2">{YLGG1}&nbsp;</td>
                <td colspan="2" class="td_r">{YLZL1}</td>
                <td colspan="2" class="td_r">{YLSL1}</td>
            </tr>
            <tr class="line">
                <td colspan="2">{YLGG2}&nbsp;</td>
                <td colspan="2" class="td_r">{YLZL2}</td>
                <td colspan="2" class="td_r">{YLSL2}</td>
            </tr>
            <tr class="line">
                <td colspan="2">{YLGG3}&nbsp;</td>
                <td colspan="2" class="td_r">{YLZL3}&nbsp;</td>
                <td colspan="2" class="td_r">{YLSL3}&nbsp;</td>
            </tr>
            <tr class="line">
                <td colspan="2">{FLGG1}&nbsp;</td>
                <td colspan="2" class="td_r">{FLZL1}&nbsp;</td>
                <td colspan="2" class="td_r">&nbsp;</td>
            </tr>
            <tr class="line">
                <td colspan="2">{FLGG2}&nbsp;</td>
                <td colspan="2" class="td_r">{FLZL2}&nbsp;</td>
                <td colspan="2" class="td_r">&nbsp;</td>
            </tr>
            <tr class="line">
                <td colspan="2">{FLGG3}&nbsp;</td>
                <td colspan="2" class="td_r">{FLZL3}&nbsp;</td>
                <td colspan="2" class="td_r">&nbsp;</td>
            </tr>
            <tr class="line">
                <td colspan="2">&nbsp;</td>
                <td colspan="2">&nbsp;</td>
                <td colspan="2">&nbsp;</td>
            </tr>
            <tr class="line">
                <td colspan="2">&nbsp;</td>
                <td colspan="2">&nbsp;</td>
                <td colspan="2">&nbsp;</td>
            </tr>
            <tr>
                <td colspan="6" class="td_l">备注：{FBZSM}</td>
            </tr>
            <tr>
                <td colspan="2">编制日期	  	
                </td>
                <td colspan="2" class="td_bl">{InputUser}
                    <br />
                    {InputDate}&nbsp;{InputTime}</td>
                <td>批准日期
                </td>
                <td colspan="2" class="td_bl">{FAuditingBy}<br />
                    {FAuditingDate}&nbsp; {FAuditingTime}</td>
                <td colspan="6">{pic_id}</td>
            </tr>
        </table>
    </div>
</div>
